#!/usr/bin/env python
# encoding: utf-8

from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^$', views.post_list, name='post_list'),
    url(r'^tag/(?P<tag_slug>[-\w]+)/$', views.post_list, name='post_list_tag'),
    url(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<post>[-\w]+)/$', views.post_detail, name='post_detail'),
    #url(r'^(?P<post_id>\d)/$', views.post_detail, name='post_detail'),
    url(r"^(?P<post_id>\d+)/share/$", views.post_share, name='post_share'),    #为邮件分享设置的路径
]
